package com.hrbxlh.dao;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

@Repository
public interface AnswerDao {
	
	/**
	 * @description 查询某问题答案的列表
	 * @return 
	 * @throws Exception
	 */
	 List<Map<String,Object>> getAllAnswerByProId(Map<String, Object> paramMap) throws Exception;

	boolean answerProblemMoble(Map<String,Object> paramMap) throws Exception;

	List<Map<String,Object>> getAllAnswerByProIdOther(Map<String, Object> paramMap) throws Exception;

	/**
	 * 回答问题。
	 * @throws IOException
	 */
	 boolean answerProblem(Map<String,Object> paramMap) throws Exception;
	
	/**
	 * 查询回答当前为题的个数
	 * @throws IOException
	 */
	 int getAnsertCount(Map<String,Object> paramMap) throws Exception;

	/**
	 * 删除我的回答。
	 * @throws IOException
	 */
	 boolean delAnswer(List<String> list) throws Exception;

	/**
	 * 通过问题主键删除回答。
	 * @throws IOException
	 */
	 boolean delAnswerByPromId(List<String> list) throws Exception;

	/**
	 * @description 我的回答列表
	 * @return
	 * @throws Exception
	 */
	 List<Map<String,Object>> getMyAnswerList(Map<String, Object> paramMap) throws Exception;

	/**
	 * @description 通过问题主键集合查询回答列表
	 * @return
	 * @throws Exception
	 */
	 List<Map<String,Object>> getAllAnswerByProIdList(List<String> list) throws Exception;

	/**
	 * @description 删除回答的方法，传的是每个人员的id
	 * @param List<Integer> 人员id的集合
	 * @return
	 * @throws Exception
	 */
	 boolean delAnswerByUserId(List<String> paramList) throws Exception;


}
